import upload from '@/utils/upload'
import request from '@/utils/request'

const appApi = {
  // 图片上传
  uploadImage: (data) => {
    return upload({
      url: '/infra/file/upload',
      method: 'POST',
      file: data
    })
  },
  // 获取字典
  getDictionaryData: (type) => {
    return request({
      url: `/system/dict-data/type?type=${type}`,
      method: 'GET'
    })
  },
}
export default appApi